
package saxon.gui.view.api;

import java.io.File;
import net.sf.saxon.s9api.XdmValue;
import saxon.gui.controller.XController;

/**
 *
 * @author lennyn
 */
public interface XView {
	
	void setController(XController controller);
	
	File getQueryFile();
	String getInputText();
	void setInputText(String xquery);

	String getFileNamePattern();
	File getInputRoot();

	LanguageChoice getLanguageChoice();

	String getDefaultNamespace();

	void setRunning(boolean running);
	
	void clearResults();
	void addResult(File file, XdmValue val);
	String getOutputText();

	void showError(String errorMsg);
	void clearErrors();

	void log(String msg);

	String getShellCommand();

	void showShellCommandResult(String lastQuery, String shellCommand, String res);

	public enum LanguageChoice { XPATH2, XQUERY }
}
